#include"rational.h"
#include<iostream>
using namespace std;

int main() {
	Rational r(4, 3);
	Rational q(-3,4);
	cout << "r = " << r << endl;
	cout << "q = " << q << endl;
	cout << "r + q = " << r + q << endl;
	cout << "r - q = " << r - q << endl;
	cout << "q - r = " << q - r << endl;
	cout << "-q = " << - q << endl;
	cout << "r * q = " << r * q << endl;
	cout << "r / q = " << r / q << endl;
	cout << "2 * r = " << 2 * r << endl;
	cout << "2 * q = " << 2 * q << endl;
	return 0;
}